import 'dart:convert';
/// account : "string"
/// avatar : "string"
/// code : "string"
/// password : "string"
/// phone : "string"

RegisterReq registerReqFromJson(String str) => RegisterReq.fromJson(json.decode(str));
String registerReqToJson(RegisterReq data) => json.encode(data.toJson());
class RegisterReq {
  RegisterReq({
      this.account, 
      this.avatar, 
      this.code, 
      this.password, 
      this.phone,});

  RegisterReq.fromJson(dynamic json) {
    account = json['account'];
    avatar = json['avatar'];
    code = json['code'];
    password = json['password'];
    phone = json['phone'];
  }
  String? account;
  String? avatar;
  String? code;
  String? password;
  String? phone;
RegisterReq copyWith({  String? account,
  String? avatar,
  String? code,
  String? password,
  String? phone,
}) => RegisterReq(  account: account ?? this.account,
  avatar: avatar ?? this.avatar,
  code: code ?? this.code,
  password: password ?? this.password,
  phone: phone ?? this.phone,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['account'] = account;
    map['avatar'] = avatar;
    map['code'] = code;
    map['password'] = password;
    map['phone'] = phone;
    return map;
  }

}